package copyproperties;

import copyproperties.exception.MyException;

public class ExceptionTest {

    public static void main(String[] args) {
        test1();
    }

    private static void test1() {
        test2();
    }

    private static void test2() {
        test3();
    }

    private static void test3() {
        int a = 2;
        if(a > 1){
            throw new MyException("出错啦...");
        }
    }
}
